<template>
  <div class="layout-page">
    <!-- 配置路由二级出口 -->
    <router-view></router-view>

    <!-- route 实现的是页面跳转时改变高亮颜色 -->
    <van-tabbar route>
       <!-- replace: 点击跳转后不记录历史, 按返回直接退出 -->
      <van-tabbar-item replace  to="/article" icon="notes-o">面经</van-tabbar-item>
      <van-tabbar-item replace  to="/collect" icon="star-o">收藏</van-tabbar-item>
      <van-tabbar-item replace  to="/like" icon="like-o">喜欢</van-tabbar-item>
      <van-tabbar-item replace  to="/user" icon="user-o">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  name: 'LayoutPage'
}
</script>

<style lang="less" scoped></style>
